#ifndef ADDSCOREPLAYERNETWORKEVENT_H_
#define ADDSCOREPLAYERNETWORKEVENT_H_

#include "NetworkEvent.h"
#include "Color.h"

class AddScorePlayerNetworkEvent : public NetworkEvent
{
public:
    struct Data
    {
        long textId;
        char playerName[20];
        int r;
        int g;
        int b;
    };

    struct Message
    {
        Header header;
        Data data;
    };

    AddScorePlayerNetworkEvent(long textId, const std::string& playerName, const Color& color);
    AddScorePlayerNetworkEvent(const Header& header, const Data& data);
    virtual ~AddScorePlayerNetworkEvent();

    virtual void visitScore(Score* score) const;

    virtual void* getMessageBlob();
    virtual size_t getMessageBlobSize();

private:
    Message message;
};

#endif
